package com.design.mode.strategy;

import java.math.BigDecimal;

/**
 * 描述:
 *
 * @author luzhongfu
 * Created by lucky on 2022-05-23 8:24 PM
 */
public class Context<T> {

    private IcouponDiscount<T> tIcouponDiscount;

    public Context(IcouponDiscount<T> tIcouponDiscount){
        this.tIcouponDiscount = tIcouponDiscount;
    }

    public BigDecimal discountAmount(T couponInfo, BigDecimal skuPrice){
        return tIcouponDiscount.discountAmount(couponInfo,skuPrice);
    }
}
